package com.chookss.base;

import android.app.Activity;
import android.webkit.JavascriptInterface;

/**
 * Create by JohnRambo at 2018/12/25
 */
public class AndroidObj extends Object {
    private String token;

    private Activity act;


    @JavascriptInterface
    public void closeAct() {
        act.finish();
    }

    @JavascriptInterface
    public String getToken() {
        return token;
    }

    public AndroidObj(String token, Activity act) {
        this.token = token;
        this.act = act;
    }
}
